import request from '@/utils/request'

export function teacherlist(params) {
  return request({
    url: '/a/u/username/list',
    method: 'get',
    params:params
  })
}
export function delteacher(id) {
  return request({
    url: '/a/u/username/'+id,
    method: 'DELETE',
  })
}
export function addTeacher(params) {
  return request({
    url: '/a/u/username/',
    method: 'POST',
    params:params
  })
}
export function teachercheck(id) {
  return request({
    url: '/a/u/username/'+id,
    method: 'get'
  })
}
export function teacheredit(id,params) {
  return request({
    url: '/a/u/username/'+id,
    method: 'post',
    params:params
  })
}

